package com.kevin;

import com.kevin.single.LinkedList;
import com.kevin.list.List;
import com.kevin.list.Person;

/**
 * Hello world!
 *
 */
public class App {
    public static void main( String[] args ) {
//        java.util.ArrayList arrayList1 = new java.util.ArrayList();
//        ArrayList<Person> arrayList = new ArrayList<>();
////        arrayList.add(99);
////        arrayList.add(88);
////        arrayList.add(55);
////        arrayList.add(44);
////        arrayList.add(33);
////        arrayList.add(22);
////        arrayList.set(2, 87);
////        for (int i = 0 ; i < 100 ; i++){
////            arrayList.add(i);
////        }
//        arrayList.add(new Person(1 ,"李四"));
//        arrayList.add(new Person(2 ,"李四2"));
//        arrayList.add(new Person(3 ,"李四3"));
//        arrayList.add(new Person(4 ,"李四4"));
//        arrayList.add(new Person(5 ,"李四5"));
//        System.out.println(arrayList);
//        arrayList.clear();
//        System.gc();
//
//        List<Integer> list = new LinkedList1<>();
//        list.add(99);
//        list.add(88);
//        list.add(1,99);
//        list.add(44);
//
//        list.remove(2);
//
//        System.out.println(list);

        List<Person> personList = new LinkedList<>();
        personList.add(new Person(1 ,"李四"));
        personList.add(new Person(2 ,"李四2"));
        personList.add(new Person(3 ,"李四3"));
        personList.add(new Person(4 ,"李四4"));
        personList.set(2,new Person(4 ,"李四4aaasdasdasdas"));
        personList.add(0,new Person(4 ,"00000"));
        personList.add(new Person(5 ,"李四5"));
        int index = personList.indexOf(new Person(4, "李四4"));
        System.out.println(index);
        System.out.println(personList);
    }
}
